package org.gwu.seuss.communication.util;

import java.util.Arrays;

public class PasswordPrompt {

	public static char[] askForPassword(String message){
	
		char[] pwd = System.console().readPassword(message + ": ");

		if(pwd.length > 50){
			Arrays.fill(pwd, ' ');
			char[] empty = {' ',' '};
			return empty;
		}
		return pwd;
	}
}
